package com.buaa.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

@Entity
@Table(name = "instrument_att")
@DynamicInsert(true)
@DynamicUpdate(true)
public class InstrumentAtt implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue // MySQL : auto_increment(default)
	@Column(name = "id")
	private Integer id; // id

	@Column(name = "qualification", columnDefinition = "varchar(2000) default ''")
	private String qualification; // 主要技术指标（9）

	@Column(name = "accessory", columnDefinition = "varchar(1200) default ''")
	private String accessory; // 主要附件（10）

	@Column(name = "function", columnDefinition = "varchar(1200) default ''")
	private String function; // 功能/应用范围(11)

	@Column(name = "service_content", columnDefinition = "varchar(2400) default ''")
	private String service_content; // 仪器服务内容(37)

	public InstrumentAtt() {
	}

	public InstrumentAtt(Integer id, String qualification, String accessory, String function, String service_content) {
		super();
		this.id = id;
		this.qualification = qualification;
		this.accessory = accessory;
		this.function = function;
		this.service_content = service_content;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getQualification() {
		return qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public String getAccessory() {
		return accessory;
	}

	public void setAccessory(String accessory) {
		this.accessory = accessory;
	}

	public String getFunction() {
		return function;
	}

	public void setFunction(String function) {
		this.function = function;
	}

	public String getService_content() {
		return service_content;
	}

	public void setService_content(String service_content) {
		this.service_content = service_content;
	}

	@Override
	public String toString() {
		return "InstrumentAtt [id=" + id + ", qualification=" + qualification + ", accessory=" + accessory
				+ ", function=" + function + ", service_content=" + service_content + "]";
	}

}
